import { axios } from '~/plugins/axios';

// 根据id获取政策
export const getPolicy = (params: string) => axios({
  method: 'get',
  url: `/policy/detail/${params}`,
}) as Promise<any>;

// 新增政策 (编辑政策)
export const addPolicy = (params: any) => axios({
  method: 'post',
  url: '/policy/add',
  data: {
    ...params,
  },
}) as Promise<any>;
